const dataPanel = () => import("./index.vue");
const dataMainPanel = () => import("./main.vue");

const instancePanel = () => import("./instance/index.vue");
const instanceEditPanel = () => import("./instance/edit.vue");

const missionPanel = () => import("./mission/index.vue");
const missionEditPanel = () => import("./mission/edit.vue");

const rolePanel = () => import("./role/index.vue");
const roleEditPanel = () => import("./role/edit.vue");

const skillPanel = () => import("./skill/index.vue");
const skillEditPanel = () => import("./skill/edit.vue");

const scriptPanel = () => import("./script/index.vue");
const scriptEditPanel = () => import("./script/edit.vue");

const materialPanel = () => import("./material/index.vue");
const materialEditPanel = () => import("./material/edit.vue");

const itemPanel = () => import("./item/index.vue");
const itemEditPanel = () => import("./item/edit.vue");


export default {
  name: "data",
  path: "/data",
  component: dataPanel,
  children: [
    { name: "instance", path: "instance", component: instancePanel },
    {
      name: "instance-edit",
      path: "instance/form/:id",
      component: instanceEditPanel,
    },
    {
      name: "instance-create",
      path: "instance/form",
      component: instanceEditPanel,
    },
    { name: "mission", path: "mission", component: missionPanel },
    {
      name: "mission-edit",
      path: "mission/form/:id",
      component: missionEditPanel,
    },
    {
      name: "mission-create",
      path: "mission/form",
      component: missionEditPanel,
    },

    { name: "role", path: "role", component: rolePanel },
    {
      name: "role-edit",
      path: "role/form/:id",
      component: roleEditPanel,
    },
    {
      name: "role-create",
      path: "role/form",
      component: roleEditPanel,
    },
    { name: "skill", path: "skill", component: skillPanel },
    {
      name: "skill-edit",
      path: "skill/form/:id",
      component: skillEditPanel,
    },
    {
      name: "skill-create",
      path: "skill/form",
      component: skillEditPanel,
    },
    { name: "script", path: "script", component: scriptPanel },
    {
      name: "script-edit",
      path: "script/form/:id",
      component: scriptEditPanel,
    },
    {
      name: "script-create",
      path: "script/form",
      component: scriptEditPanel,
    },
    { name: "material", path: "material", component: materialPanel },
    {
      name: "material-edit",
      path: "material/form/:id",
      component: materialEditPanel,
    },
    {
      name: "material-create",
      path: "material/form",
      component: materialEditPanel,
    },
    { name: "item", path: "item", component: itemPanel },
    {
      name: "item-edit",
      path: "item/form/:id",
      component: itemEditPanel,
    },
    {
      name: "item-create",
      path: "item/form",
      component: itemEditPanel,
    },
    { name: "main", path: "", component: dataMainPanel },
  ],
};
